package com.enjoy.ioc.constructor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class A {


    @Autowired
    public A(B b) {
        System.out.println(b);
    }
//    @Autowired
//    public A(){
//
//    }
}
